{% extends "profilebase.html" %}

{% block sidebar2 %}
<h4>Hall Of Fame</h4>

<h5>MOST REVIEWED</h5>
{% for mr in most_reviewed %}
	<a href="/myprofile/{{ mr.id }}/">{{ mr }}</a><br />
{% endfor %}

{% if teachers %}
	<h5>TEACHERS</h5>
	{% for teacher in teachers %}
		<a href="/myprofile/{{ teacher.abstract_user.id }}/">{{ teacher.abstract_user }}</a><br />
		{% if teacher.teaches %}
			Teaches: {{ teacher.teaches }}<br/>
		{% endif %}
		<br/>
	{% endfor %}
{% endif %}

{% if institutes %}
	<h5>INSTITUTE</h5>
	{% for institute in institutes %}
		<a href="/myprofile/{{ institute.abstract_user.id }}/">{{ institute.abstract_user }}</a><br />
		{% if institue.about %}
			About: {{ institute.about }}<br/>
		{% endif %}
		<br/>
	{% endfor %}
{% endif %}

{% if students %}
	<h5>STUDENTS</h5>
	{% for student in students %}
		<a href="/myprofile/{{ student.abstract_user.id }}/">{{ student.abstract_user }}</a><br />
		{% if student.jamming_style %}
			Jamming Style: {{ student.jamming_style }}<br/>
		{% endif %}
		<br/>
	{% endfor %}
{% endif %}


{% endblock %}

{% block content %}
<div style="font-size:30;"><b>Connections' Updates</b></div>
<small>Your friends' comments, thoughts, favorites, lessons, concerts, etc.</small><br/><br/>
{% for abstract_user,update in updates %}
	{% if abstract_user == "admin" %}
		Admin:
	{% else %}
		<a href="/myprofile/{{ abstract_user.id }}/">{{ abstract_user }}</a>:
	{% endif %}
	{%  if update.video_id %}
		<iframe width="560" height="315" src="http://www.youtube.com/embed/{{ update.video_id }}" frameborder="0" allowfullscreen></iframe>
	{% endif %}
	{% if update.content %}
		{{ update.content }}
	{% endif %}
	{% if update.mp3_url %}
	{{ update.mp3_name }}
	<object height="100" width="100%"> 
		<param name="movie" value={{ update.mp3_url }}/> 
	</object> 
	{% endif %}
<br /><br/>
{% endfor %}

{% endblock %}
